package com.xh.petdogexpert.expert.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.xh.petdogexpert.expert.dto.ArticlePush;

public interface ArticlePushMapper {
	int deleteByPrimaryKey(Integer id);

	int insert(ArticlePush record);

	int insertSelective(ArticlePush record);

	ArticlePush selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(ArticlePush record);

	int updateByPrimaryKey(ArticlePush record);

	List<ArticlePush> queryArticlePushs(ArticlePush articlePush);

	Integer isZan(@Param("userid") int userId, @Param("articleId") int articleId);
	
	Integer zan(@Param("userid") int userId, @Param("articleId") int articleId);
	
	Integer getArticleZan(int articleId);
	
}